﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Domain.Models
{
    [DisplayName("凭据")]
    public class AuthToken
    {
        [DisplayName("编号")]
        public int Id { get; set; }

        [DisplayName("登录用户")]
        [StringLength(200)]
        public string UserName { get; set; }


        [DisplayName("连接凭据")]
        [StringLength(1024)]
        public string AccessToken { get; set; }

        [DisplayName("刷新凭据")]
        [StringLength(1024)]
        public string RefreshToken { get; set; }

        [DisplayName("更新时间")]
        public DateTime? UpdateTime { get; set; }

        [DisplayName("创建时间")]
        public DateTime? CreateTime { get; set; }


    }
}
